<?php

include './common/functions.php';
include_once './common/Db.class.php';

$data = $_POST;

$data['ctime'] = time();

$data['password'] = md5($data['password']);

unset($data['repassword']);

// 操作数据 库
$db = new Db('user');

$res = $db->save($data);

header("Location:./index.php");